<div class="ui card " p-context="userInfo | {uName: userName, uid: uid, follower:follower, following:following, spost:spost}">
	<div class="ui small centered circular  image">
		<a p-bind="href:/user/{{uid}}"><img src=""></a>
	</div>
	<div class="content">
		<a class="header centered" p-bind="href:/user/{{uid}}">{{{uName}} </a>
        <div class="meta centered">
         	<span class="date">不想成为画家的黑客不是好摄影师</span>
        </div>	                
		<div class="ui mini statistics">
 			<div class="statistic">
		    	<div class="value">
			     	<a href="followers">{{follower}}</a>
			    </div>
   				<div class="label">粉丝</div>
 			</div>
		  	<div class="statistic">
			    <div class="value">
			      <a href="/followings">{{following}}</a>
			    </div>
			    <div class="label">关注
			    </div>
		  	</div>
		  	<div class="statistic">
			    <div class="value">
			      	<a href="#">{{spost}}</a>
			    </div>	
		    	<div class="label">状态
		    	</div>
		  	</div>
		</div>	<!-- end statistics --> 
	</div>
</div>
<script>
	$(document).ready(function(){
		function getUser(){
			$.post('./user/get',function(data){
				console.log(data)				
				vm.set({
					userInfo:{
						userName:data.user_name,
						uid:data.id,
						follower:data.counter.follower, 
						following:data.counter.following, 
						spost:data.counter.spost
					}
				});
			})
		}
		getUser();
	});
</script>
